package com.xyz.bigcorn.admin.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xyz.bigcorn.admin.system.entity.Authority;
import com.xyz.bigcorn.core.common.annotation.MyBatisDao;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * @Description:
 * @author: Zhaopengfei
 * @copyright: 金鹏信息技术有限公司
 * @CreatedDate: 2018年03月14日 15:24
 * @Copyright: All rights Reserved，Designed By Jpsycn
 */
@MyBatisDao
public interface AuthorityMapper extends BaseMapper<Authority> {
    List<Authority> listByUserId(String userId);

    List<Authority> listByRoleIds(@Param("roleIds") List<String> roleIds);

    List<Authority> listByRoleId(String roleId);

}
